package com.wontube.smr.client.model.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.wontube.client.modle.vo.PagenateInfo;
import com.wontube.client.modle.vo.PagenateSupport;
import com.wontube.smr.client.model.po.MVChart;



/**
 * 音乐排行榜结果包装器
 * @author tanggf(2012-4-11)
 *
 */
public class MVChartItems implements Serializable {
	private static final long serialVersionUID = -6041558404079767638L;	
	/** 分页支持  */
	private PagenateSupport pagenate = new PagenateSupport();
	/** 结果集 */
	private List<MVChart> items = new ArrayList<MVChart>();
	
	public MVChartItems(){}
	
	public MVChartItems(PagenateInfo pageInfo) {		
		if(pageInfo != null){
			if(pageInfo.getPageSize() > PagenateSupport.maxPageSize){
				pageInfo.setPageSize(PagenateSupport.maxPageSize);
			}
			pagenate.setPagenateInfo(pageInfo);
		}
	}
	
	public int getPageNo(){
		return pagenate.getPageNo();
	}
	
	public int getPageCount(){
		return pagenate.getPageCount();
	}
	
	public int getPageSize(){
		return pagenate.getPageSize();
	}
	
	public void setTotalCount(int total){
		pagenate.setTotalCount(total);
	}
	
	public PagenateSupport getPagenate() {
		return pagenate;
	}
	public void setPagenate(PagenateSupport pagenate) {
		this.pagenate = pagenate;
	}
	public List<MVChart> getItems() {
		return items;
	}
	public void setItems(List<MVChart> items) {
		this.items = items;
	}	
}
